package com.ls.pattern.visitor;

import java.util.Random;

/**
 * 员工抽象
 *
 * @author 挥之以墨
 */
public abstract class Employee {

    public String name;
    public int kpi;

    public Employee(String name) {
        this.name = name;
        this.kpi = new Random().nextInt(10);
    }

    public abstract void accept(IVisitor visitor);

}
